# -*- coding: utf-8 -*-
"""
@File: main.py
@Time: 2022/01/06 17:22
@Author: 鹄望潇湘
@desc: 学术规范成绩录入脚本

"""


from pymouse.windows import PyMouse
from pykeyboard.windows import PyKeyboard
import time

mouse = PyMouse()
board = PyKeyboard()

old_pos = mouse.position()
time.sleep(0.1)
mouse.move(20, 35)
time.sleep(0.1)
mouse.click(20, 35)
time.sleep(0.1)

items = 8         # 该页需要设置成绩的学生数

board.tap_key(board.tab_key, items+11)
for i in range(0, items):
    board.tap_key(board.down_key, 2)
    time.sleep(0.01)
    board.tap_key(board.tab_key, 2)
    time.sleep(0.01)
mouse.move(old_pos[0], old_pos[1])
print("已结束")